import request from '/@/utils/request';
/**
 *
 * notice接口集合
 * @method noticeConfig 通知配置
 * @method noticeList 通知列表
 * @method sendPatient 发送通知给患者
 * @method sendDoctor 发送通知给医生
 * @method getAnesthesiaDoctorList 获取麻醉医生列表
 */

export function applyformApi() {
    return {


        getDepartments: (data) => {
            return request({
                url: '/api/system/departments',
                method: 'get',
                data,
            });
        },
        getHospitalArea: (data) => {
            return request({
                url: '/api/system/hospital_area',
                method: 'get',
                data,
            });
        },
        getDianosisList: (data) => {
            return request({
                url: '/tools/get_diagnosis_list',
                method: 'get',
                data,
            });
        },
        getOperationList: (data) => {
            return request({
                url: '/tools/operation',
                method: 'get',
                params: data,
            });
        },
        getDoctorList: (data) => {
            return request({
                url: '/tools/doctor',
                method: 'get',
                params: data,
            });
        },
        getAnesthesiaDoctorList: (data) => {
            return request({
                url: '/tools/getAnesthesiologist',
                method: 'get',
                params: data,
            });
        },
        getAnesthesiaMode: (data) => {
            return request({
                url: '/tools/get_anesthesia_mode',
                method: 'get',
                data,
            });
        },
        doApply: (data) => {
            return request({
                url: '/patient/apply',
                method: 'post',
                data,
            })
        },
        getOption: (data) => {
            return request({
                url: '/tools/daytime_assessment_items',
                method: 'get',
                data,
            });
        },
        getToken: (data) => {
            return request({
                url: '/sso/auth/token',
                method: 'post',
                headers: {
                    'X-OPENAPI-TOKEN': import.meta.env.VITE_X_OPENAPI_TOKEN
                },
                data,
            })
        },
        patientDetail: (data) => {
            return request({
                url: '/patient/show',
                method: 'post',
                data,
            })
        },
        updatePatient: (data) => {
            return request({
                url: '/patient/update_patient_record',
                method: 'post',
                data,
            })
        },
        getDepartmentByKSDM: (data) => {
            return request({
                url: '/department/getDepartmentIdByDepartmentNo',
                method: 'post',
                data,
            })
        },
        getUserIdByJobNo: (data) => {
            return request({
                url: '/user/getUserIdByJobNo',
                method: 'post',
                data,
            })
        },
        getUserPhoneById: (data) => {
            return request({
                url: '/user/getUserPhoneById',
                method: 'post',
                data,
            })
        },
    }


}